package com.omar.labs.tamtamy.XML;

import com.omar.labs.tamtamy.Comment;
import com.omar.labs.tamtamy.utils.XMLUtility;

public class XMLComment extends Comment{

	public XMLComment(String xml){
		super();
		this.id = Long.parseLong(XMLUtility.getNodeValue(xml, "id"));
		this.contentId = Long.parseLong(XMLUtility.getNodeValue(xml, "contentId"));
		this.user = XMLUtility.getNodeValue(xml, "user");
		this.creationDate = null; //XMLUtility.getNodeValue(xml, "creationDate");
		this.comment = XMLUtility.getNodeValue(xml, "comment");			
	}	

}
